package com.trafficsys.modules.police.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.trafficsys.modules.entity.DriveCard;
import com.trafficsys.modules.entity.Driver;
import com.trafficsys.modules.entity.Police;
import com.trafficsys.modules.entity.TravelCard;
import com.trafficsys.modules.police.pojo.DriverAndIdCard;
import com.trafficsys.modules.police.pojo.PoliceAndIdCard;
import org.springframework.stereotype.Service;

import java.util.HashMap;


public interface DriverAndIdCardService {
    //根据cardID查driver和id_card
//    HashMap<String,Object> selectDriverByCardId();
    //添加驾驶员
    HashMap<String,Object> insertDriver(Driver driver);

    //分页查询
    IPage<DriverAndIdCard> selectDriverByCardId(Page<DriverAndIdCard> page);
    //修改驾驶员
    HashMap<String,Object> updateDriverAndIdCard(DriverAndIdCard driverAndIdCard);
    //删除驾驶员
    HashMap<String,Object> deleteDriverAndIdCard(String cardId);


    //查询警员
    IPage<PoliceAndIdCard> getPolice(Page<PoliceAndIdCard> page);
    //修改警员
    HashMap<String,Object> updatePoliceAndIdCard(PoliceAndIdCard policeAndIdCard);
    //删除警员
    HashMap<String,Object> deletePoliceAndIdCard(String cardId);

    //添加行驶证
    HashMap<String,Object> insertTravelCard(TravelCard travelCard);
    //修改行驶证
    HashMap<String,Object> updateTravelCard(TravelCard travelCard);
    //删除行驶证
    HashMap<String,Object> deleteTravelCard(String carNo);


    //查询驾驶证
    IPage<DriveCard> getDriveCard(Page<DriveCard> page);
    //添加驾驶证
    HashMap<String,Object> insertDriverCard(DriveCard driveCard);
    //修改驾驶证
    HashMap<String,Object> updateDriverCard(DriveCard driveCard);
    //删除行驶证
    HashMap<String,Object> deleteDriverCard(String cardId);
}
